package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author zwy
 * Sound 实体类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    private static final long serialVersionUID = -8131885495122332252L;

    private ObjectId id;   //主键id

    private Long sid;//sound的id

    private Long userId;//用户id
    private String soundUrl;//声音路径
    private Long random;//随机数,获取声音时,从随机数中抽取一个
    private Long created;//创建时间
}
